/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

package com.jy.rhin.facade.ws.registration.organization;

import javax.jws.WebService;

import cn.org.chiss.rhin._2015.base.object.Practitioner;
import cn.org.chiss.rhin._2015.registration.organization.PractitionerFeed;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jy.rhin.application.registration.OrganizationService;
import com.jy.rhin.config.NamespaceConstants;
import com.jy.rhin.support.aspect.AuditLog;

import cn.org.chiss.rhin._2015.registration.organization.PractitionerFeedResponse;
import cn.org.chiss.rhin._2015.registration.organization.PractitionerQuery;
import cn.org.chiss.rhin._2015.registration.organization.PractitionerQueryResponse;


@WebService(
        serviceName = "PractitionerProvider",
        portName = "PractitionerProvider",
        targetNamespace = NamespaceConstants.NS_RHIN,
        endpointInterface = "com.jy.rhin.facade.ws.registration.organization.PractitionerProvider")
@Component
public class PractitionerProviderPortImpl implements PractitionerProvider {

	@Autowired
	OrganizationService organizationService;

	@Override
	@AuditLog
	public PractitionerFeedResponse practitionerFeed(PractitionerFeed practitionerFeed) {
		return organizationService.practitionerFeed(practitionerFeed.getPractitioner());
	}

	@Override
	@AuditLog
	public PractitionerQueryResponse practitionerQuery(PractitionerQuery message) {
		return organizationService.practitionerQuery(message);
	}





}
